﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RawsManagerWeb.aspx.cs" Inherits="ERPWeb.RawsManagerWeb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section>
		<div class="tableShow">
			<div class="title">
				原材料管理
			</div>
			<!-- 搜索和页面展示 -->
			<div class="tableBox">
				<!-- 查询 -->
				<div class="lookup">
					<span>原材料名称：</span>
                    <asp:TextBox ID="txtRawsName" runat="server" class="textBox"></asp:TextBox>
					<span>产地：</span>
					<asp:TextBox ID="txtRawsAddress" runat="server" class="textBox"></asp:TextBox>
					<span>供应商：</span>
					<asp:TextBox ID="txtRawsSupplier" runat="server" class="textBox"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" class="btn btn-search" OnClick="btnSearch_Click"/>
					<asp:Button ID="btnReturn" runat="server" Text="刷新" class="btn btn-return" OnClick="btnReturn_Click" />
				</div>
				<!-- 图表展示 -->
				<div class="looks">
                    <asp:GridView ID="gvRawsInfo" class="Grid" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" AllowPaging="True" HorizontalAlign="Center" OnPageIndexChanging="gvRawsInfo_PageIndexChanging" PageSize="9">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="RawMaterial"  HeaderText="原材料名称" />
                            <asp:BoundField DataField="RawsAddress" HeaderText="产地" />
                            <asp:BoundField DataField="Supplier" HeaderText="供应商" />
                            <asp:BoundField DataField="Unitprice" HeaderText="单价" />
                            <asp:BoundField DataField="unit" HeaderText="计量单位" />
                            <asp:BoundField DataField="states" HeaderText="状态" />
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
				</div>
			</div>
			<!-- 功能按钮 -->
			<div class="function">
				<asp:Button ID="btnAdd" runat="server" Text="添加" class="btn btn-add" OnClick="btnAdd_Click"/>
				<asp:Button ID="btnChange" runat="server" Text="修改" class="btn btn-change" OnClick="btnChange_Click"/>
				<asp:Button ID="btnDelete" runat="server" Text="删除" class="btn btn-delete"/>
			</div>
		</div>
	</section>
</asp:Content>
